package com.source.springioc;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

/**
 * Created by tan on 2017/6/23.
 */
public class BeanLifeCycle implements InitializingBean {
	 public BeanLifeCycle() {
       System.out.println("BeanLifeCycle: constructor");
    }

    @PostConstruct
    public void postConstruct() {
       System.out.println("BeanLifeCycle: postConstruct");
    }

    public void initMethod() {
       System.out.println("BeanLifeCycle: init-method");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
       System.out.println("InitSequenceBean: afterPropertiesSet");
    }
}
